﻿using System;
using System.Data ;
using System.Linq;

namespace LayerEntity.Sistema
{
    public class EMoneda
    {
        #region Constructor
        public EMoneda(IDataRecord record)
        {
            this.IdMoneda = (int)record["id_moneda"];
            this.Descripcion = record["des_moneda"].ToString();
            this.Simbolo = record["abre_moneda"].ToString();
            this.IdEstado = (int)record["id_estado"];
        }

        public EMoneda()
        {
            this.IdMoneda = 0;
            this.Descripcion = string.Empty ;
            this.Simbolo = string.Empty ;
            this.IdEstado = 0;
        }

        #endregion

        #region Propiedades

        public int IdMoneda { get; set; }

        public string Descripcion { get; set; }

        public string Simbolo { get; set; }

        public int IdEstado { get; set; }
        #endregion
    }
}